package cn.yueshutong.server.remote.parm;

import cn.yueshutong.server.remote.parm.entity.Address;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 远程主机的地址列表
 */
@Validated
@Component
@ConfigurationProperties(prefix = "monitor")
@Data
public class AddressParm {
	
	@NotNull
	private List<Address> serve;
}